const initialState = {
  sum:0
}

export function computerReducer(state=initialState,action){
  switch(action.type){
    case "computer":
      state.sum = action.firstNum+action.secondNum
      return{
        sum:state.sum
      }
      break;
    default:
      return state;
      break;
  }
}